#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include<conio.h>
int main()
{
	long time;
	int is=0;
	for (float t = 0.0f;; t += 0.1f)
    {
      is++;
       if (is % 5 == 1)
			system("color a");
        else if(is%5==2)
			system("color b");
		else if(is%5==3)
			system("color c");
		else if(is%5==4)
			system("color d");
		else 
			system("color e");
	for (float y = 1.5f; y >-1.5f; y -= 0.1f)
			{
				for (float x = -1.5f; x < 1.5f; x += 0.05f)
				{
					float a = x * x + y * y - 1;
					if((y<0.7f)&&(y>0.3f))
						putchar(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ' ');
					else if((y>=0.7f)&&(y<1.5f))
						putchar(a * a * a - x * x * y * y * y <= 0.0f ? 'a' : ' ');
					else if((y>-1.5f)&&(y<=-0.5f))
						putchar(a * a * a - x * x * y * y * y <= 0.0f ? '+' : ' ');
					else if((y>-0.5f)&&(y<=-0.1f))
						putchar(a * a * a - x * x * y * y * y <= 0.0f ? '@' : ' ');
					else
						putchar(a * a * a - x * x * y * y * y <= 0.0f ? '%' : ' ');
				}
				putchar('\n');
			}
	}
	
	return 0;
}

